home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5883 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  898 b 

  1. Path: news1.halcyon.com!chinook!danubius
  2. From: danubius@chinook.halcyon.com ()
  3. Newsgroups: comp.windows.x.motif,comp.lang.c++
  4. Subject: Re: MOTIF Callbacks, C++ Member Functions - SOLVED
  5. Date: 7 Feb 1996 06:03:36 GMT
  6. Organization: Northwest Nexus, Inc. - Professional Internet Services
  7. Distribution: inet
  8. Message-ID: <4f9fbo$7ju@news1.halcyon.com>
  9. References: <4f6oau$c4m@knot.queensu.ca>
  10. NNTP-Posting-Host: chinook.halcyon.com
  11.  
  12. Wintermute  <3mal5@qlink.queensu.ca> wrote:
  13. >
  14. >The solution was to declare a static member function which is used as a 
  15. >callback.  Since it is static, there is no 'this' pointer, and it works 
  16. >fine.  To access the particular class instance, pass the 'this' pointer 
  17. >as client data when installing the callback, and it will be available 
  18. >when the static member function is called back.
  19.  
  20. Which is exactly the method Doug Young uses in his book on Motif with
  21. C++.
  22.  
  23. Joe
  24.